<!DOCTYPE html>
<html lang="en">
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:replace="main::head">
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div class="container-fluid">
    <div class="row g-3">
<!--/*-->
        <div class="col-6">
            <div class="card">
                <div class="card-header">
                    限时考试
                </div>
                <div class="card-body">
                    <h5 class="card-title">软件工程章测试</h5>
                    <p class="card-text">时间 60分钟</p>
                    <p class="card-text">得分<span>80</span></p>
                </div>
                <div class="card-footer text-right">
                    <a href="#" class="btn btn-primary">查看详情</a>
                </div>
            </div>
        </div>
        <div class="col-6">
            <div class="card">
                <div class="card-header">
                    限时考试
                </div>
                <div class="card-body">
                    <h5 class="card-title">软件工程章测试</h5>
                    <p class="card-text">时间 60分钟</p>
                    <p class="card-text">得分<span>80</span></p>
                </div>
                <div class="card-footer text-right">
                    <a href="#" class="btn btn-primary">查看详情</a>
                </div>
            </div>
        </div>
        <div class="col-6">
            <div class="card">
                <div class="card-header">
                    限时考试
                </div>
                <div class="card-body">
                    <h5 class="card-title">软件工程章测试</h5>
                    <p class="card-text">时间 60分钟</p>
                    <p class="card-text">得分<span>80</span></p>
                </div>
                <div class="card-footer text-right">
                    <a href="#" class="btn btn-primary">查看详情</a>
                </div>
            </div>
        </div>
        <div class="col-6">
            <div class="card">
                <div class="card-header">
                    限时考试
                </div>
                <div class="card-body">
                    <h5 class="card-title">软件工程章测试</h5>
                    <p class="card-text">时间 60分钟</p>
                    <p class="card-text">得分<span>80</span></p>
                </div>
                <div class="card-footer text-right">
                    <a href="#" class="btn btn-primary">查看详情</a>
                </div>
            </div>
        </div>
        <div class="col-6">
            <div class="card">
                <div class="card-header">
                    限时考试
                </div>
                <div class="card-body">
                    <h5 class="card-title">软件工程章测试</h5>
                    <p class="card-text">时间 60分钟</p>
                    <p class="card-text">得分<span>80</span></p>
                </div>
                <div class="card-footer text-right">
                    <a href="#" class="btn btn-primary">查看详情</a>
                </div>
            </div>
        </div>
<!--*/-->
        <div class="col-6" th:each="sp:${studentPaperList}">
            <div class="card">
                <div class="card-header" th:text="${sp.examPaper.paper_type =='4'}?'限时考试':'任务试卷'">
                    限时考试
                </div>
                <div class="card-body">
                    <h5 class="card-title" th:text="${sp.examPaper.paper_name}">软件工程章测试</h5>
                    <P>时间
                        <span class="card-text" th:text="${sp.examPaper.suggest_time}"> 60</span>分钟
                    </P>
                    <p class="card-text">得分<span  th:text="${sp.mark}">80</span></p>
                </div>
                <div class="card-footer text-right">
                    <a href="/view-my-paper" class="btn btn-primary"  th:href="@{/view-my-paper(paperId=${sp.id_paper})}">查看详情</a>
                </div>
            </div>
        </div>
    </div>
    <nav>
        <ul class="pagination justify-content-end">
            <li class="page-item disabled">
                <a class="page-link" href="#" tabindex="-1" aria-disabled="true">上一页</a>
            </li>
            <li class="page-item"><a class="page-link" href="#">1</a></li>
            <li class="page-item"><a class="page-link" href="#">2</a></li>
            <li class="page-item"><a class="page-link" href="#">3</a></li>
            <li class="page-item">
                <a class="page-link" href="#">下一页</a>
            </li>
        </ul>
    </nav>
</div>

</body>
</html>